package com.prpat;

import java.util.HashSet;

public class CrackedHashes 
{
	private static HashSet<String> cracked = new HashSet<String>();

	public static void addToCracked(String hash)
	{
		synchronized (cracked) {
			cracked.add(hash);
		}
	}
	
	public static boolean alreadyCracked(String hash)
	{
		boolean ans = false;
		synchronized (cracked) {
			ans = cracked.contains(hash);
		}
		return ans;
	}
}
